2 using System
.Collections
.Generic
;
3 using System
.ComponentModel
;
8 using System
.Windows
.Forms
;
10 namespace MyCompany
.CSVSToolbox
12 // Set the display name and custom bitmap to use for this item.
13 // The build action for the bitmap must be "Embedded Resource".
14 [DisplayName("ToolboxMemberDemo")]
15 [Description("Custom toolbox item from package LoadToolboxMembers.")]
17 [ToolboxBitmap(typeof(MyControl
), "MyControl.bmp")]
18 public partial class MyControl
: UserControl
22 InitializeComponent();
25 private void button1_Click(object sender
, EventArgs e
)
27 OpenFileDialog opg
= new OpenFileDialog();
28 opg
.Multiselect
= false;
29 if (opg
.ShowDialog() == DialogResult
.OK
)
30 this.textBox1
.Text
= opg
.FileName
;